import cv2
import numpy as np

back = cv2.imread('img/bg.jpg')
smallcat = cv2.imread('img/dog.jpg')

#只有两张图片的属性是一样的才可以进行溶合
print(back.shape, smallcat.shape)

result = cv2.addWeighted(back, 0.7, smallcat, 0.3, 0)

cv2.imshow('result', result)
cv2.waitKey(0)

